//
//  BaseTypeCell.m
//  住房条件帅选器
//
//  Created by MB__Lee on 2018/5/18.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "BaseTypeCell.h"

@interface BaseTypeCell()

@property (weak, nonatomic) IBOutlet UILabel *BaseLabel;



@end


@implementation BaseTypeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

-(void)setModel:(BaseModel *)model{
    _model = model;
    
    self.BaseLabel.text = model.name;
}
-(void)setText:(NSString *)text{
    _text = text;
    
    self.BaseLabel.text = text;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {

    [super setSelected:selected animated:animated];

    if (selected) {
        self.BaseLabel.textColor  = MB_RGBA(63, 171, 250, 1.0);
        
    }else if (!selected){
        self.BaseLabel.textColor = MB_RGBA(51, 51, 51, 1.0);
    }
}

@end
